#!/bin/bash

echo "=== 检查 Docker 容器状态 ==="
docker ps -a | grep flink

echo -e "\n=== 检查 JobManager 日志 ==="
docker logs flink-jobmanager

echo -e "\n=== 检查 TaskManager 日志 ==="
docker logs flink-taskmanager

echo -e "\n=== 检查网络配置 ==="
docker network inspect flink-network

echo -e "\n=== 检查端口监听状态 ==="
netstat -tunlp | grep 8081 